package com.fire.control.system.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
* @ClassName: Middleware
* @Description: TODO(中间件表)
* @author wanbo
* @date 2017年6月19日 下午6:53:31
*/
@Entity
@Table(name = "t_middleware") 
public class Middleware extends BaseEntity{
	
	private static final long serialVersionUID = -901025177401575255L;
	@Column
	private String companyId;
	@Column
    private String middlewareName;
    @Column
    private String middlewareCode;

    //网关ID
    @Column
    private String gatewayId;
    @Column
    private String spectrum;

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId == null ? null : companyId.trim();
    }

    public String getMiddlewareName() {
        return middlewareName;
    }

    public void setMiddlewareName(String middlewareName) {
        this.middlewareName = middlewareName == null ? null : middlewareName.trim();
    }

    public String getMiddlewareCode() {
        return middlewareCode;
    }

    public void setMiddlewareCode(String middlewareCode) {
        this.middlewareCode = middlewareCode == null ? null : middlewareCode.trim();
    }

    public String getGatewayId() {
        return gatewayId;
    }

    public void setGatewayId(String gatewayId) {
        this.gatewayId = gatewayId == null ? null : gatewayId.trim();
    }

    public String getSpectrum() {
        return spectrum;
    }

    public void setSpectrum(String spectrum) {
        this.spectrum = spectrum == null ? null : spectrum.trim();
    }

	public void setMiddleware(Middleware middleware) {
		this.companyId=middleware.getCompanyId();
		this.gatewayId = middleware.getCompanyId();
		this.middlewareCode = middleware.getMiddlewareCode();
		this.middlewareName=middleware.getMiddlewareName();
		this.spectrum = middleware.getSpectrum();
		this.setStatus(middleware.getStatus());
		this.setCreateTime(middleware.getCreateTime());
		this.setUpdateTime(middleware.getUpdateTime());
	}
    
}